#include <stdio.h>

int main() {
    char a[4][3][2] = {{{'a', 'b'}, {'c', 'd'}, {'e', 'f'}},
                       {{'g', 'h'}, {'i', 'j'}, {'k', 'l'}},
                       {{'m', 'n'}, {'o', 'p'}, {'q', 'r'}},
                       {{'s', 't'}, {'u', 'v'}, {'w', 'x'}}};

    char (*pa)[2] = &a[1][0];
    char (*ppa)[3][2] = &a[1];

    printf("通过pa访问 'r'：%c\n", pa[5][1]);
    printf("通过ppa访问 'r'：%c\n", ppa[1][2][1]);

    return 0;
}

//所以(*pa)[0]这个表达式也可以改写成pa[0][0]